(iswitchb-completions): Test that iswitchb-common-match-string is a
authorStephen Eglen <stephen@gnu.org>
Thu, 26 Sep 2002 15:50:59 +0000 (15:50 +0000)
committerStephen Eglen <stephen@gnu.org>
Thu, 26 Sep 2002 15:50:59 +0000 (15:50 +0000)
string, before printing common completions.

lisp/iswitchb.el

index 0b283d0ae779ca66dd8881dafe383efc5c20e80e..d24f737851b02750c0497b07e5ffcc854ce38c60 100644 (file)
@@ -1260,7 +1260,8 @@ Modified from `icomplete-completions'."
 
              ;; put in common completion item -- what you get by
              ;; pressing tab
-             (if (> (length iswitchb-common-match-string) (length name))
+             (if (and (stringp iswitchb-common-match-string)
+                      (> (length iswitchb-common-match-string) (length name)))
                  (concat open-bracket-determined
                          (substring iswitchb-common-match-string
                                     (length name))